package model;

import org.bson.types.ObjectId;

import com.google.code.morphia.annotations.Embedded;
import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Id;

@Entity("Personas")
public class Persona {

	@Id private String id;
	private String name;
	private int age;
	@Embedded
	private Address address;
	
	public Persona(){}
	public Persona(String id,String nombre,int edad,Address address){
		this.id=id;
		name=nombre;
		age=edad;
		this.setAddress(address);
	}
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id=id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public Address getAddress() {
		return address;
	}
	public void setAddress(Address address) {
		this.address = address;
	}
}
